package com.mowh.gof23.creational.patterns.singleton;

/**
 * @author mowh1gd
 * @create 2023/10/27 16:30
 */
public class Singleton {
    private static Singleton singleton = new Singleton();

    private Singleton() {
        System.out.println("生成了一个实例。");
    }
    public static Singleton getInstance() {
        return singleton;
    }
}
